#include "common.hpp"
#include "tcpserver.hpp"

void print()
{
    std::cout << "*****" << std::endl;
}

int main(int argc, char *argv[])
{
    if (argc != 2)
    {
        SerErr();
        exit(ERR_SER);
    }
    uint16_t tcp_port = std::stoi(argv[1]);

    Tcp_Server::TcpServer tcp_ser(tcp_port, print);
    tcp_ser.Init();
    tcp_ser.Run();

    return 0;
}